﻿using System;
using System.Windows.Controls;
using Hearthstone_Deck_Tracker.Plugins;

namespace AllanPlugins
{
	public class BoxPlugin : IPlugin
	{
        //private CurvyList _list;

        private MyMenu mMenu;
        public string Author
		{
			get { return "allan"; }
		}

		public string ButtonText
		{
			get { return "没有设置"; }
		}

		public string Description
		{
			get { return "多玩导入@allan"; }
		}

		public MenuItem MenuItem
        {
            get
            {
                if (mMenu == null)
                    mMenu = new MyMenu();
                return mMenu;
            }
        }

		public string Name
		{
			get { return "多玩导入by allan"; }
		}

		public void OnButtonPress()
		{
		}

		public void OnLoad()
		{
      
            //_list = new CurvyList();
            //Core.OverlayCanvas.Children.Add(_list);
            //Curvy curvy = new Curvy(_list);

            //GameEvents.OnGameStart.Add(curvy.GameStart);
            //GameEvents.OnInMenu.Add(curvy.InMenu);
            //GameEvents.OnTurnStart.Add(curvy.TurnStart);

        }

		public void OnUnload()
		{
           if(mMenu != null) mMenu.unloadPlugin();
            //Core.OverlayCanvas.Children.Remove(_list);
        }

		public void OnUpdate()
		{
		}

		public Version Version
		{
			get { return new Version(0, 0, 2, 0); }
		}
	}
}